#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class TeacherEducation : Business.BusinessBase<TeacherEducation, int>
	{
		#region Fields and Properties

		private String educationType = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String EducationType
		{
			get { return educationType; }
			set
			{
				if (value != educationType)
				{
					MarkChanged("EducationType");
					educationType = value;
				}
			}
		}

		private String professName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProfessName
		{
			get { return professName; }
			set
			{
				if (value != professName)
				{
					MarkChanged("ProfessName");
					professName = value;
				}
			}
		}

		private DateTime endDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime EndDate
		{
			get { return endDate; }
			set
			{
				if (value != endDate)
				{
					MarkChanged("EndDate");
					endDate = value;
				}
			}
		}

		private DateTime startDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime StartDate
		{
			get { return startDate; }
			set
			{
				if (value != startDate)
				{
					MarkChanged("StartDate");
					startDate = value;
				}
			}
		}

		private String educationSchool = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String EducationSchool
		{
			get { return educationSchool; }
			set
			{
				if (value != educationSchool)
				{
					MarkChanged("EducationSchool");
					educationSchool = value;
				}
			}
		}

		private String teacherCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TeacherCode
		{
			get { return teacherCode; }
			set
			{
				if (value != teacherCode)
				{
					MarkChanged("TeacherCode");
					teacherCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public TeacherEducation()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override TeacherEducation DataSelect(int id)
		{
			return Services.DALService.TeacherEducationService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TeacherEducationService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TeacherEducationService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TeacherEducationService.Delete(this);
		}

		#endregion Base overrides
	}
}
